<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="styleSheet" href="css/style.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Les Voyages</title>
</head>
<body>
<f:view>
<table width="100%" align="center">
	<tr>
		<td colspan="3">
		<h2 class="BovoyageTitre">Caddy</h2>
		</td>
	</tr>
	<tr>
		<td width="100px">
			<img src="images/fondoNaranja.png" width="100px" height="200px"/>
		</td>
		<td>
			<h:form>
				<div class="message"><h:outputText value="#{voyageJsfBean.message}"></h:outputText></div>
					<h:commandButton action="#{voyageJsfBean.doRecupVoyagesAll}" value="Tous" />
			</h:form>

			<c:if test="${voyageJsfBean.listeVoyages!=null}">

				<h:dataTable var="v" value="#{voyageJsfBean.listeVoyages}">
					<h:column>
						<f:facet name="header"><h:outputText value="Id"></h:outputText></f:facet>
							<h:outputText value="#{v.id}"></h:outputText>
					</h:column>
					<h:column>
						<f:facet name="header"><h:outputText value="Destination"></h:outputText></f:facet>
							<h:outputText value="#{v.destination}"></h:outputText>
					</h:column>
				</h:dataTable>
			</c:if>												
		</td>

		<td width="100px">
			<img src="images/fondoNaranja.png" width="100px" height="200px" />
		</td>
	</tr>
</table>
</f:view>
</body>
</html>






